<!DOCTYPE html>
<html lang="en">
<style>
    /*.main-content{
        background: url("../../../Public/background/lw.jpg");
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }*/
    #upload_img object{height: 140px;width: 180px;}
    table thead tr th{text-align: left;}
    table tbody tr td{text-align: left;}
</style>
    <include file="Index:head"/>
    <include file="Index:nav"/>
    <div class="main-container" id="main-container">
        <include file="Index:menu"/>
        <div class="main-content">
            <!-- <div style="clear: both;"></div> -->
            <include file="Index:title"/>
                <div class="row">
                    <div class="col-xs-12 form-group">
                        <div class="col-sm-5">
                            <button class="btn btn-primary " type="button" id="addMenu">
                                <i class="icon-ok bigger-110"></i>
                                添加菜单
                            </button>
                        </div>
                    </div><!--col-xs-12-->
                    <hr>
                    <div class="col-xs-12" id="pagetable">

                    </div>
                </div><!--row-->
            </div><!--page-content-->
            <include file="Index:setting"/>
        </div>
    </div>
    <include file="Index:footer"/>
    <!--自己的js代码引入-->
    <script type="text/javascript">
        var urlquery = "__ROOT__/admin/Menu/menuList";
        page(urlquery);
        $("#addMenu").click(function () {
            layer.open({
                type: 2,
                title:'添加新菜单',
                area: ['40%', '60%'],
                fixed: false, //不固定
                maxmin: true,
                content: '__ROOT__/admin/menu/addmenu.html'
            });
//           location.href = "https://wy.zetaluoxin.cn/enjoy/menu/addmenu.html";
        });


        function updateMenu(obj) {
            console.log(obj);
            layer.open({
                type:2,
                title:"编辑菜单",
                area:['40%','60%'],
                fixed: false, //不固定
                maxmin: true,
                content: '__ROOT__/admin/menu/updateMenu.html?menu_id='+obj
            });
        }
    </script>
</html>